﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tests
{
    using ZeroCross;
    using ClientLib;
    using ClientWF;
    using NUnit.Framework;
    using System.Threading;

    [TestFixture]
    class UTestsServer
    {
        Server server = null;
        Client client = null;

        [TestFixtureSetUp]
        public void Init()
        {
            server = new Server();
            server.Start();         
        }

        [TestFixtureTearDown]
        public void ShutDown()
        {
            
            server.Stop();
            
        }
        
        [Test]
        public void TestConnection()
        {
            string actual = "Login^Вася";
            Client.connect(ref actual,"http://localhost:8811/");
            Assert.IsTrue(actual == "No players online");
        }      
    }
}
